Component({
    properties: {
        point: {
            type: Number,
            value: 1
        },
        shaking: {
            type: Boolean,
            value: !1
        },
        text: {
            type: Array,
            value: []
        }
    },
    data: {
        X: 30,
        Y: 45,
        Z: 45,
        current: 1
    },
    observers: {
        text: function(t) {
            t.length < 0 && this.setData({
                text: [ "一", "二", "三", "四", "五", "六" ]
            });
        },
        shaking: function(t) {
            this.setData({
                current: t ? 0 : this.data.point
            });
        },
        point: function(t) {
            var e, a, r, s = Math.floor(360 * Math.random()), n = t;
            switch (t) {
              case 1:
                e = 235, a = 0, r = s;
                break;

              case 2:
                e = -35, a = s, r = -90;
                break;

              case 3:
                e = -35, a = s, r = 0;
                break;

              case 4:
                e = 145, a = s, r = 0;
                break;

              case 5:
                e = -35, a = s, r = 90;
                break;

              case 6:
                e = 55, a = 0, r = s;
            }
            this.setData({
                X: e,
                Y: a,
                Z: r,
                current: n
            });
        }
    }
});